package org.nzj.useradmin.vo;

import java.util.Date;

public class User {
	private int id;
	private String userno;
	private String name;
	private String sex;
	private String passwd;
	private Date birthday;
	private String email;
	private String ip;
	private String pic;
	private String regtime;

	public String getUserno() {
		return userno;
	}

	public User() {
	}

	public User(String userno, String name, String passwd) {

		this.name = name;
		this.userno = userno;
		this.passwd = passwd;
	}
	public User(int id,String userno, String name, String passwd) {
		this.id=id;
		this.name = name;
		this.userno = userno;
		this.passwd = passwd;
	}
	public User(int id, String userno, String name, String sex, String passwd,
			Date birthday, String email, String ip, String pic, String regtime) {
		this.id = id;
		this.userno = userno;
		this.name = name;
		this.sex = sex;
		this.passwd = passwd;
		this.birthday = birthday;
		this.email = email;
		this.ip = ip;
		this.pic = pic;
		this.regtime = regtime;
	}

	public void setUserno(String userno) {
		this.userno = userno;
	}

	public Date getBirthday() {
		return birthday;
	}

	public String getEmail() {
		return email;
	}

	public int getId() {
		return id;
	}

	public String getIp() {
		return ip;
	}

	public String getName() {
		return name;
	}

	public String getPasswd() {
		return passwd;
	}

	public String getPic() {
		return pic;
	}

	public String getRegtime() {
		return regtime;
	}

	public String getSex() {
		return sex;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public void setId(int id) {
		this.id = id;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setPasswd(String passwd) {
		this.passwd = passwd;
	}

	public void setPic(String pic) {
		this.pic = pic;
	}

	public void setRegtime(String regtime) {
		this.regtime = regtime;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	@Override
	public String toString() {
		return "编号：" + this.id + "|| 用户帐号：" + this.userno + "|| 姓名："
				+ this.name + "|| 性别:" + this.sex + "|| 生日：" + this.birthday
				+ "|| 密码：" + this.passwd + "|| 邮箱：" + this.email + "|| 注册IP："
				+ this.ip + "|| 注册时间：" + this.regtime + "|| 头像名称：" + this.pic;// new
																				// SimpleDateFormat("yyyy-MM-dd").format(this.birthday);

	}

}
